import Vue from 'vue'
import App from './App.vue'
import axios from 'axios'
import MyGoodsList from './views/MyGoodsList.vue'
import MyGoodsSearch from './views/MyGoodsSearch.vue'
import MyUserInfo from './views/MyUserInfo.vue'
import VueRouter from 'vue-router'
import "bootstrap/dist/css/bootstrap.css"
import "./assets/fonts/iconfont.css"
Vue.prototype.$axios=axios
axios.defaults.baseURL = "https://www.escook.cn"
Vue.config.productionTip = false
Vue.use(VueRouter)
 const routes = [
  {
    path: "/",
    name: "MyGoodsList",
    redirect: "/mygoodslist", //重定向到MyGoodsList页
  },
  {
    path: "/mygoodslist",
    name: "MyGoodsList",
    component: MyGoodsList,
  },
  {
    path: "/mygoodssearch",
    name: "MyGoodsSearch",
    component: MyGoodsSearch,
  },
  {
    path: "/myuserInfo",
    name: "MyUserInfo",
    component: MyUserInfo,
  },
];
const router = new VueRouter({
  routes
})
new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
